3D Motion analysis